//
//  RecreationManager.h
//  Happy to chat
//
//  Created by lanou3g on 15/12/8.
//  Copyright © 2015年 LL. All rights reserved.
//

#import <Foundation/Foundation.h>
@class AVPlayer;
@class AVPlayerLayer;
@class RecreationModel;


@interface RecreationManager : NSObject
@property (nonatomic, strong)AVPlayer *avPlayer;
@property (nonatomic, strong)AVPlayerLayer *avPlayerlayer;
@property (nonatomic, assign) BOOL UPorDown;

+(instancetype)defaultRecraetionManager;
/**
 *  加载页面准备
 */
- (void)prepareMoviePageWithHandle:(void(^)())handle;

/**
 视频详情准备加载
 */
- (void)prepareDetailMovieWithHandel:(void(^)())handle URLString:(NSString *)urlStr key:(NSString *)key;


/**
 加载播放器
 */
- (void)setupAVPlayerWithModel:(RecreationModel *)movie;

/**
 开始播放
 */
- (void)playerPlay;

/**
 暂停播放
 */
- (void)playerPause;

/**
 返回model数组
 */
- (NSArray *)returnModelArray;

/**
 返回数组个数
 */
- (NSInteger)returnModelArrayCount;

/**
 返回model
 */
- (RecreationModel *)returnMovieModelWithIndex:(NSInteger)index;

/**
 释放avPlayer
 */
- (void)shiFang;

/**
 返回detailModelArray
 */
- (NSArray *)returnDetailModelArray;









@end
